#ifndef CONV1_H_
#define CONV1_H_

#include "data.h"

#include <GL/glew.h>
#include <GL/glut.h>
#include <Cg/cg.h>
#include <Cg/cgGL.h>
#include <string>

void generateData(const int size, float4 * h_data);

void makeConvFunc(const int cSize, const GLuint d_cFuncTex);

void convolve(const int size, const int cSize, const GLuint d_cFuncTex,
        const GLuint d_dataTex, const GLuint d_resultTex);

void saveResults(std::string fileName, const int dataSize,
        float4 * h_result);

void info();

#endif // CONV1_H_
